import { defineStore } from "pinia";
export const tokenMet = defineStore("tokenMethod", {
  state: () => ({
    token: "",
    refreshToken: "",
  }),
  actions: {
    async getToken(tok: any, refresh: any) {
      this.token = tok;
      this.refreshToken = refresh;
    },
    async removeToken() {
      this.token = "";
      this.refreshToken = "";
    },
  },
  persist: true,
});
